<include file="public@header"/>
<style>
    #add{
        margin-left: 30px;font-size: 20px;font-weight: 700
    }
</style>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="">四个链接及图标</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('Wuye/four')}">
        <div id="addDiv">
            <div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"><span class="form-required">*</span>一:</label>
                    <div class="col-md-6 col-sm-10">
                        <input type="text" class="form-control" name="one" value="{$data.one|default=''}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"><span class="form-required">*</span>链接:</label>
                    <div class="col-md-6 col-sm-10">
                        <input type="text" class="form-control" name="onelink" value="{$data.onelink|default=''}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"><span class="form-required">*</span>图标:</label>
                    <div class="col-md-6 col-sm-10">
                        <input id="file-1" type="hidden" name="onefile" value="{$data.onefile|default=''}">
                        <input  id="file-1-name" type="text" title="图片名称">
                        <a class="btn btn-primary" href="javascript:uploadOne('图片上传','#file-1','image');">上传</a>
                    </div>
                    <notempty name="$data.onefile">
                        <img src="<?php echo cmf_get_image_url($data['onefile']);?>" width="50">
                    </notempty>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"><span class="form-required">*</span>是否显示:</label>
                    <div class="col-md-6 col-sm-10">
                        <select name="one_show" class="form-control">
                            <option value="0" <eq name="$data.one_show" value="0">selected</eq> >否</option>
                            <option value="1" <eq name="$data.one_show" value="1">selected</eq> >是</option>
                        </select>
                    </div>
                </div>
                <hr>

                <div class="form-group">
                    <label class="col-sm-2 control-label"><span class="form-required">*</span>二:</label>
                    <div class="col-md-6 col-sm-10">
                        <input type="text" class="form-control" name="two" value="{$data.two|default=''}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"><span class="form-required">*</span>链接:</label>
                    <div class="col-md-6 col-sm-10">
                        <input type="text" class="form-control" name="twolink" value="{$data.twolink|default=''}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"><span class="form-required">*</span>图标:</label>
                    <div class="col-md-6 col-sm-10">
                        <input id="file-2" type="hidden" name="twofile" value="{$data.twofile|default=''}">
                        <input  id="file-2-name" type="text" title="图片名称">
                        <a class="btn btn-primary" href="javascript:uploadOne('图片上传','#file-2','image');">上传</a>
                    </div>
                    <notempty name="$data.twofile">
                        <img src="<?php echo cmf_get_image_url($data['twofile']);?>" width="50">
                    </notempty>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"><span class="form-required">*</span>是否显示:</label>
                    <div class="col-md-6 col-sm-10">
                        <select name="two_show" class="form-control">
                            <option value="0" <eq name="$data.two_show" value="0">selected</eq> >否</option>
                            <option value="1" <eq name="$data.two_show" value="1">selected</eq> >是</option>
                        </select>
                    </div>
                </div>
                <hr>

                <div class="form-group">
                    <label class="col-sm-2 control-label"><span class="form-required">*</span>三:</label>
                    <div class="col-md-6 col-sm-10">
                        <input type="text" class="form-control" name="three" value="{$data.three|default=''}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"><span class="form-required">*</span>链接:</label>
                    <div class="col-md-6 col-sm-10">
                        <input type="text" class="form-control" name="threelink" value="{$data.threelink|default=''}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"><span class="form-required">*</span>图标:</label>
                    <div class="col-md-6 col-sm-10">
                        <input id="file-3" type="hidden" name="threefile" value="{$data.threefile|default=''}">
                        <input  id="file-3-name" type="text" title="图片名称">
                        <a class="btn btn-primary" href="javascript:uploadOne('图片上传','#file-3','image');">上传</a>
                    </div>
                    <notempty name="$data.threefile">
                        <img src="<?php echo cmf_get_image_url($data['threefile']);?>" width="50">
                    </notempty>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"><span class="form-required">*</span>是否显示:</label>
                    <div class="col-md-6 col-sm-10">
                        <select name="three_show" class="form-control">
                            <option value="0" <eq name="$data.three_show" value="0">selected</eq> >否</option>
                            <option value="1" <eq name="$data.three_show" value="1">selected</eq> >是</option>
                        </select>
                    </div>
                </div>
                <hr>

                <div class="form-group">
                    <label class="col-sm-2 control-label"><span class="form-required">*</span>四:</label>
                    <div class="col-md-6 col-sm-10">
                        <input type="text" class="form-control" name="four" value="{$data.four|default=''}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"><span class="form-required">*</span>链接:</label>
                    <div class="col-md-6 col-sm-10">
                        <input type="text" class="form-control" name="fourlink" value="{$data.fourlink|default=''}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"><span class="form-required">*</span>图标:</label>
                    <div class="col-md-6 col-sm-10">
                        <input id="file-4" type="hidden" name="fourfile" value="{$data.fourfile|default=''}">
                        <input  id="file-5-name" type="text" title="图片名称">
                        <a class="btn btn-primary" href="javascript:uploadOne('图片上传','#file-4','image');">上传</a>
                    </div>
                    <notempty name="$data.fourfile">
                        <img src="<?php echo cmf_get_image_url($data['fourfile']);?>" width="50">
                    </notempty>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"><span class="form-required">*</span>是否显示:</label>
                    <div class="col-md-6 col-sm-10">
                        <select name="four_show" class="form-control">
                            <option value="0" <eq name="$data.four_show" value="0">selected</eq> >否</option>
                            <option value="1" <eq name="$data.four_show" value="1">selected</eq> >是</option>
                        </select>
                    </div>
                </div>
                <hr>
            </div>
        </div>
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-primary js-ajax-submit">{:lang("SAVE")}</button>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
    function reduce(obj) {
        var addErDiv = $(obj).parent().parent();
        var addDiv = $(obj).parent().parent();
        addErDiv.remove();
    }
</script>
</body>
</html>